import { IConstant_Enum_Type_UserClient_Status } from '@/common/constants/enum';
import { ApiProperty } from '@nestjs/swagger';

export class UserClient_WebReturnUser_ReClass {
  @ApiProperty({ description: '用户ID' })
  id: number;

  @ApiProperty({ description: '手机号' })
  phone: number | null;

  @ApiProperty({ description: '邮箱' })
  email: string | null;

  @ApiProperty({ description: '用户名' })
  userName: string;

  @ApiProperty({ description: '用户头像' })
  headimgurl: string | null;

  @ApiProperty({ description: '分销码' })
  distributionCode: string;
}

// 去除password和openid
export class UserClient_AdmReturnUser_ReClass extends UserClient_WebReturnUser_ReClass {
  @ApiProperty({
    description: '状态',
  })
  statusUser: IConstant_Enum_Type_UserClient_Status;
}
